<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Aadmin extends ORM {
	protected $_table_name = 'admins';

	public function currentUser() {
		return DB::select()
			->from('admins')
			->where('id', '=', Cookie::get('admin', null))
			->execute()
			->as_array();
	}
}